#ifndef LOG_H
#define LOG_H

#include <stdarg.h>
#include <stdio.h>

void LogErr( const char * sFormat, ... )
{
	char logbuf[1024] = {0};
	va_list args;
	va_start( args, sFormat );
	vsnprintf( logbuf, sizeof(logbuf), sFormat, args );
	va_end( args );

	printf( "ERR: %s\n", logbuf );	
}

void LogDebug( const char * sFormat, ... )
{
	char logbuf[1024] = {0};
	va_list args;
	va_start( args, sFormat );
	vsnprintf( logbuf, sizeof(logbuf), sFormat, args );
	va_end( args );

	printf( "DEBUG: %s\n", logbuf );	
}

#endif
